/**
 * Shopware 4.0
 * Copyright © 2012 shopware AG
 *
 * According to our dual licensing model, this program can be used either
 * under the terms of the GNU Affero General Public License, version 3,
 * or under a proprietary license.
 *
 * The texts of the GNU Affero General Public License with an additional
 * permission and of our proprietary license can be found at and
 * in the LICENSE file you have received along with this program.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * "Shopware" is a registered trademark of shopware AG.
 * The licensing of the program under the AGPLv3 does not imply a
 * trademark license. Therefore any rights, title and interest in
 * our trademarks remain entirely with us.
 *
 * @category   Shopware
 * @package    Shopware_Styling
 * @subpackage Tree
 * @copyright  Copyright (c) 2012, shopware AG (http://www.shopware.de)
 * @version    $Id$
 * @author shopware AG
 */
@mixin shopware-tree {
    .#{$prefix}tree-panel {

        // Header
        .#{$prefix}grid-header-ct {
            border-right-color: $border-color;

            // Last column
            .#{$prefix}column-header-last {
                border-right: 1px solid #fff;
            }

            // Header text
            .#{$prefix}column-header-text {
                text-shadow: 0 1px 0 #fff;
            }
        }

        // Tree panel body
        .#{$prefix}panel-body {
            border-right-color: $border-color;

            .#{$prefix}grid-view {
                @include single-box-shadow($font-color, 0, 1px, 3px, -2px, true);
                padding: 5px 0 0;

                // Action column
                .#{$prefix}action-col-icon {
                    width: 16px; height: 16px;
                    margin-left: 10px;
                }
                
                .#{$prefix}grid-cell {
                	border-bottom: 1px solid transparent !important;
                }

                // Column styling
                .#{$prefix}grid-row-selected .#{$prefix}grid-cell {
                    border-top: 1px solid #d0dfeb;
                    border-bottom: 1px solid #d0dfeb !important;
                    background: #ddedf7 !important;
                    color: $font-color;
                }
            }
        }
        
        // Icons
       	.#{$prefix}tree-icon-parent {
       		background: url("") no-repeat;
       	}
       	
       	.#{$prefix}tree-icon-leaf {
       		background: url("") no-repeat;
       	}
       	
       	.#{$prefix}grid-tree-node-expanded .#{$prefix}tree-icon-parent {
       		background: url("") no-repeat;
       	}
    }
}